< previous page page_254 next page >

Page 254
If youve used Microsoft Access, youre familiar with the concept of a datasheet. This is a display of all the rows and columns in a particular table. A datasheet is nothing more than a recordset. You know that at the last record is a record that has an asterisk (*) next to it; this is the phantom record, and its where you can add a new record to the table. Microsoft Access does not show the phantom record before the first record in the table.
EXERCISE
Look at the Example Database
1. Find the Employees.mdb file on the companion Web Site for this book and copy it to a directory on your hard drive somewhere.
2. Open this MDB file in Microsoft Access.
3. Double-click the tblEmployees table to view the datasheet.
analysis.gifIn the examples that come with this book, youll find an Access database called Employees.mdb. This file has many tables in it, one of which is an employee table called tblEmployees. In this chapter, youll connect this employee table up to the employee form youve been building in this book.

Cursor Types
Theres a property on the data control that determines the type of cursor you want to use. Which cursor type you choose determines what you can do with the resulting record set. You can use a forward-only cursor if all youre using this recordset for is to load a list box one time, and you dont need to use the cursor after this loading. You may also use a dynamic cursor if you want to view all changes made to the underlying table, and you want to make changes to the table. This type of cursor is very expensive on both the server and the client. The other type of updatable cursor is called a keyset. This type of cursor is not as expensive as a dynamic cursor, but it still allows updates. Youll be able to see other users changes and deletes, but you wont be able to see records that users add. The last type of cursor is a static cursor. This type of cursor is fully scrollable (can move forward and backward) but may not be updatable.

 
< previous page page_254 next page >

If you like this book, buy it!